<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2018/11/18
 * Time: 21:42
 */

namespace app\storage\controller;


use app\storage\model\MaterielModel;
use app\storage\service\MaterielService;
use cmf\controller\AdminBaseController;
use think\Request;

class MaterielController extends AdminBaseController
{

    protected $materielModel;

    public function __construct(MaterielModel $materielModel,Request $request = null)
    {
        parent::__construct($request);
        $this->materielModel = $materielModel;
    }

    public function updateMaterielInfo(){
        $materiel = input('materiel');
        $materielService = new MaterielService();
        $result = $materielService->updateMaterielInfo($materiel);
        return json($result);
    }
}